package com.mine.register;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author weixiao
 * @date 2025/3/31 11:02
 */
public class LocalServiceRegister {

    private static final ConcurrentHashMap<String, Class> MAP = new ConcurrentHashMap<>();

    public static void put(String interfaceName, String version, Class implClass) {
        MAP.put(interfaceName + "_" + version, implClass);
    }

    public static Class get(String interfaceName, String version) {
        return MAP.get(interfaceName + "_" + version);
    }
}
